<#assign view_base_name>ChartViewBase</#assign>
<#assign self_content>
<#if view.isExpandSearchForm() == true>

    /**
     * 是否展开搜索表单
     *
     * @protected
     * @type {boolean}
     * @memberof ${srfclassname('${view.name}')}Base
     */
    protected isExpandSearchForm: boolean = true;
</#if>
<#if view.isEnableQuickGroup()>

    /**
     * 是否启用快速分组
     *
     * @type {boolean}
     * @memberof ${srfclassname('${view.name}')}Base
     */
    public isEnableQuickGroup: boolean = true;

    /**
     * 加载快速分组模型
     *
     * @protected
     * @memberof ${srfclassname('${view.name}')}Base
     */
    protected loadQuickGroupModel(): void {
        <#if view.getQuickGroupPSCodeList()??>
        <#assign codelist=view.getQuickGroupPSCodeList() />
        const quickGroupCodeList: any = { tag: '${codelist.codeName}', codelistType: '${codelist.getCodeListType()}' };
        if(quickGroupCodeList.tag && Object.is(quickGroupCodeList.codelistType, "STATIC")) {
            const codelist = this.$store.getters.getCodeList(quickGroupCodeList.tag);
            if (codelist) {
                this.quickGroupModel = [...this.handleDynamicData(JSON.parse(JSON.stringify(codelist.items)))];
            } else {
                <#noparse>console.log(`----${quickGroupCodeList.tag}----代码表不存在`);</#noparse>
            }
        } else if(quickGroupCodeList.tag && Object.is(quickGroupCodeList.codelistType, "DYNAMIC")) {
            this.codeListService.getItems(quickGroupCodeList.tag, {}, {}).then((res: any) => {
                this.quickGroupModel = res;
            }).catch((error:any) => {
                <#noparse>console.log(`----${quickGroupCodeList.tag}----代码表不存在`);</#noparse>
            });
        }
        </#if>
    }
</#if>
</#assign>
<#ibizinclude>
../@MACRO/VIEW-BASE.vue.ftl
</#ibizinclude>